-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
return {
  {
    "AstroNvim/astrocore",
    opts = function(_, opts)
      local opt = require("astrocore").extend_tbl(opts, {
        options = {
          -- first key is the type of option `vim.<first_key>`
          opt = {
            relativenumber = true, -- sets `vim.opt.relativenumber`
            -- signcolumn = "auto", -- sets `vim.opt.relativenumber`
            number = false,
            -- spellfile = vim.fn.stdpath "config" .. "/lua/user/spell/en.utf8.add",
            -- thesaurus = vim.fn.stdpath "config" .. "/lua/user/spell/mthesaur.txt",
            -- helplang = "cn",
            paste = false,
            scrolloff = 5,
            -- scrolloff = math.floor((win_height - 1) / 2),
            -- sidescrolloff = math.floor((win_height - 1) / 2),
          },
          g = {
            transparent_background = true,
            -- icons_enabled = true,
            -- set global `vim.g` settings here
          },
        },
        diagnostics = {
          update_in_insert = false,
          underline = true,
          virtual_text = {
            spacing = 5,
            severity_limit = "WARN",
            severity = {
              min = vim.diagnostic.severity.INFO,
            },
          },
          signs = {
            severity = {
              min = vim.diagnostic.severity.INFO,
            },
          },
        },
      })
      return opt
    end,
  },
}
